use std::fmt;
use user_auth_rs::{
    common::{LogLevel, Logger, LoggerRegistry},
    log_i,
};

struct StdoutLogger;

impl Logger for StdoutLogger {
    fn log(&self, level: LogLevel, file_name: &str, line_num: u32, args: fmt::Arguments<'_>) {
        println!("[{:?}] [{}:{}] {}", level, file_name, line_num, args);
    }
}

fn main() {
    LoggerRegistry::set(Box::new(StdoutLogger));
}
